package dk.rhok.server;

import java.util.ArrayList;

import dk.rhok.model.Assessment;
import dk.rhok.model.Coordinate;
import dk.rhok.model.MapOverlay;

/**
 * Contains and filters information when an overlay of a map is requested
 * 
 * @author Jonas Grann <jonasgrann@gmail.com>
 * @since 0.1
 */

public interface MapOverlayServer {
	
	/**
	 * Returns an arraylist containing the overlays of a given area
	 * @param from The top left corner of the area
	 * @param to The bottom right corner of the area
	 * @param types A comma seperated list of types, for demo purpose it's "water", "shelter" and "relief"
	 * @return The assessments in the area
	 */
	public ArrayList<MapOverlay> getOverlays(Coordinate from, Coordinate to, String types);

	/**
	 * Adds an assessment to the server
	 * @param a
	 */
	public void addMapOverlay(MapOverlay o);
}
